﻿using ElasticSearchDemo.Domain.Command;
using MediatR;

namespace ElasticSearchDemo.Domain.CommandHandler
{
    public class RegisterNotiDbHandler : INotificationHandler<RegisterNotification>
    {
        public Task Handle(RegisterNotification notification, CancellationToken cancellationToken)
        {
            Task.Delay(2000);
            Console.WriteLine($"存入数据库{notification.LoginName},{notification.Password}");

            return Task.CompletedTask;
            


        }
    }
}
